import request from "@/utils/request"

export function jobJdbcDatasource(obj) {
  return request({
    url: "/jobJdbcDatasource/all",
    method: "get",
    params: obj
  })
}

export function typeGetDataSource(obj) {
  return request({
    url: "/jobJdbcDatasource/typeGetDataSource",
    method: "get",
    params: obj
  })
}


export function add(obj) {
  return request({
    url: "/jobJdbcDatasource",
    method: "post",
    data: obj
  })
}

export function update(obj) {
  return request({
    url: "/jobJdbcDatasource/update",
    method: "post",
    data: obj
  })
}

export function statusUpdate(obj) {
  return request({
    url: "/jobJdbcDatasource/updateStatus",
    method: "get",
    params: obj
  })
}

export function del(obj) {
  return request({
    url: "/jobJdbcDatasource/delete",
    method: "get",
    params: obj
  })
}

export function test(obj) {
  return request({
    url: "/jobJdbcDatasource/test",
    method: "post",
    data: obj
  })
}


